<?php
require "./vendor/autoload.php";

//开启session
session_id() || session_start();

//默认加载home类
require "./Home.php";

//加载方法 默认index
$action = isset($_GET['a']) ? $_GET['a'] : 'index';
$obj = new Email();
$obj->$action();